import axios from '@/utils/axios';

export const getConfigBySite = (params) => {
    return axios.request({
        url: '/site/payment-method',
        method: 'get',
        params
    });
};

export const editSiteConfig = (data) => {
    return axios.request({
        url: '/site/payment-method',
        method: 'post',
        data
    });
};

export const getTableHeaderConfig = (params) => {
    return axios.request({
        url: '/site/table-header',
        method: 'get',
        params
    });
};

export const addTableHeaderConfig = (data) => {
    return axios.request({
        url: '/site/table-header',
        method: 'post',
        data
    });
};
